<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>

		<link href="css/mui.min.css" rel="stylesheet" />

	</head>

	<body>

<input type="button" value="测试" id="test">

		<script src="config/require.js" data-main="config/main"></script>
		<script>
			require(['main'], function() {
				require(['base', 'mui', 'jquery','common',"ejs","winwebview"], function(base, mui, $,com,ejs,wv) {
					var that = base;
					$("#test").on("click",function(){
						//测试jquery模块、base模块、config.api模块加载
						alert(base.webApi.login);
						//测试common模块加载
						com.test();
						//测试ejs模块加载
						console.log(ejs) ;
						//测试webview操作模块加载
						wv.test();
						//测试跳转到login页面和传值
						wv.openMuiPage(base.viewId.login,null,null,{
							test:"test"
						});
					});
				});
			});
		</script>
	</body>

</html>